extends "../cTDZ_2_3/cTDZ_2_3.gd"
func _info():
	pass

func _connect():
	._connect()

func _extInit():
	._extInit()
	chaName = "骷髅链战"
	lv = 3
	attCoe.atkRan = 3
	attCoe.atk = 40 / 8.5 * 2 / 3
	attCoe.maxHp = 710 / 112.5 / 3
	attAdd.spd = 1.1
	addCdSkill("bczj",5)
	addSkillTxt("链锤之威：攻速固定110%，普攻造成范围伤害（2技能眩晕对范围所有人有效）")
	addSkillTxt("爆锤之击：对的当前敌人造成250%物理伤害（可暴击），10%概率使自身眩晕2s[cd:5秒]")

func _onBattleStart():
	._onBattleStart()
	addBuff(KLLZ.new(1))

func _onAtkInfo(atkinfo):
	._onAtkInfo(atkinfo)
	if atkinfo.atkCha == self && atkinfo.atkType == Chara.AtkType.SKILL:
		atkinfo.canCri = true

func _castCdSkill(id):
	._castCdSkill(id)
	if id == 'bczj' && aiCha:
		cst("爆锤之击","000000",position)
		hurtChara(aiCha,att.atk*2.5,Chara.HurtType.PHY,Chara.AtkType.SKILL)
		if sys.rndPer(10):
			addBuff(ctrl.b_xuanyun.new(1))

class KLLZ:
	extends Buff
	var canremove:bool = false
	func _init(lv):
		attInit()
		id = "KLLZ"

	func _upS():
		masCha.attInfo.spd = 1.1
		masCha.upAtt()